
<div class="account" id="registerAcc">
    <h2><?= $this->translate('Register') ?></h2>

    <p><?= $this->translate('Please, register to have opportunity lead you business by youself') ?></p><br>

    <div id="acc_form">
        <form action="/account/reguser" id="form0" method="post">
            <div class="validation-summary-valid" id="validationSummary">
                <ul>
                    <li style="display:none"></li>
                </ul>
            </div>

            <div class="editor-label"><label for="registerModel_Email"><?= $this->translate('Email address') ?></label></div>
            <div class="editor-field"><input class="text-box single-line" id="registerModel_Email"
                                             name="registerModel.Email" type="text" value="">
                <br><span class="field-validation-valid" id="registerModel_Email_validationMessage"></span>
            </div>
            <br>

            <div class="editor-label"><label for="registerModel_Password"><?= $this->translate('Password') ?></label></div>
            <div class="editor-field">
                <input class="text-box single-line password" id="registerModel_Password" name="registerModel.Password"
                       type="password" value="">
                <br><span class="field-validation-valid" id="registerModel_Password_validationMessage"></span>
            </div>
            <br>

            <div class="editor-label"><label for="registerModel_ConfirmPassword"><?= $this->translate('Confirm password') ?></label></div>
            <div class="editor-field">
                <input  class="text-box single-line password" id="registerModel_ConfirmPassword"
                       name="registerModel.ConfirmPassword" type="password" value="">
                <br><span class="field-validation-valid" id="registerModel_ConfirmPassword_validationMessage"></span>
            </div>
            <br>

            <div id="captcha">
                <?=$this->captcha?>

            </div>
            <b
            <h2 style="color: red;"><?=$this->error?></h2>
           <br>
                <p> <input type="button" id="refresh" value="refresh capthca">
     <input class="submit" type="submit" value="<?= $this->translate('Register') ?>"></p>

        </form>
        <script type="text/javascript">
            //<![CDATA[
            if (!window.mvcClientValidationMetadata) {
                window.mvcClientValidationMetadata = [];
            }
            window.mvcClientValidationMetadata.push({"Fields":[
                {"FieldName":"registerModel.Email","ReplaceValidationMessageContents":true,"ValidationMessageId":"registerModel_Email_validationMessage","ValidationRules":[
                    {"ErrorMessage":"The email is required.","ValidationParameters":{},"ValidationType":"required"}
                ]},
                {"FieldName":"registerModel.Password","ReplaceValidationMessageContents":true,"ValidationMessageId":"registerModel_Password_validationMessage","ValidationRules":[
                    {"ErrorMessage":"The password is required.","ValidationParameters":{},"ValidationType":"required"},
                    {"ErrorMessage":"The field Password must be a string with a maximum length of 15.","ValidationParameters":{"minimumLength":0,"maximumLength":15},"ValidationType":"stringLength"}
                ]},
                {"FieldName":"registerModel.ConfirmPassword","ReplaceValidationMessageContents":true,"ValidationMessageId":"registerModel_ConfirmPassword_validationMessage","ValidationRules":[
                    {"ErrorMessage":"The confirm password is required too.","ValidationParameters":{},"ValidationType":"required"},
                    {"ErrorMessage":"The field Confirm password must be a string with a maximum length of 15.","ValidationParameters":{"minimumLength":0,"maximumLength":15},"ValidationType":"stringLength"}
                ]}
            ],"FormId":"form0","ReplaceValidationSummary":true,"ValidationSummaryId":"validationSummary"});
            //]]>
        </script>
    </div>

</div>